﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ADial;

namespace ADail
{
    public class CallHandler : ICallHandler
    {
        public ITelephoneNumberParser Parser = null;
        
        public bool matches(string number)
        {
            return Parser.matches(number);
        }

        public string extract(string number)
        {
            return Parser.parse(number);
        }

        private ArrayList _actions = null;
        /***
         * List of asterisk actions
         */
        public System.Collections.ArrayList Actions
        {
            set
            {
                _actions = value;
            }
            get
            {
                return _actions ;
            }
        }



    }

    
}
